<?php
/*
 * Template Name: Contact
 */
 ?>

<?php get_header(); ?>

<div class="middle-highlight-container">
  <div class="middle">
    <h2 class="page-subtitle"><?php the_title(); ?></h2>
  </div>
</div>

<div id="content-container">
	<?php // get_sidebar(); ?>
  <div id="content">

	<?php
		 if($_GET['vf'] == 'verification'){
				require(TEMPLATEPATH. "/verifContact.php");
				funcVerif();
		 }
	?>
	<form class="bloc_coordonnees">
		<div class="titre_assoc"><h5>Coordonnées :</h5></div>
		<div class="assoc_titre">Adresse postale :</div><div class="info_assoc">143 Avenue de Versailles Paris 75016</div>
		<div class="assoc_titre">T&eacute;l&eacute;phone :</div><div class="info_assoc"> 01 25 48 59 65</div>
	</form>

		<form class='bloc-contact' action="?vf=verification" method='post'>
			<div class="titre_contact"><h5>Contacter :</h5></div>
			<!-- Affiche les erreurs si le javascript est désactivé (controle en php) -->
				<?php
					if (isset($erreur)) {
						echo '<div id="erreur">';
						foreach($erreur as $cle => $valeur) {
							echo '<div class="erreur">'.$valeur.'</div><br />';
						}
						echo '</div>';
					}
				?>

			
			<div class='txterror'>Les champs marqué d'un <span class="style_star">*</span> sont obligatoires</div>
			<div class="formulaire">
				<table border="0" cellspacing="0" cellpadding="0" width="100%">
					<tr>
						<td>Nom <span class="style_star">*</span> :</td>
						<td><input type="text" id="nom" name="nom" size="45" maxlength="20" value="<?php echo $formNom; ?>"/><span class="error-message"></span></td>
					</tr>
				
					<tr>
						<td>E-mail <span class="style_star">*</span> :</td>
						<td><input type="text" id="mail" name="mail" size="45" maxlength="100" value="<?php echo $formMail; ?>" /><span class="error-message"></span></td>
					</tr>
				
					<tr>
						<td>Sujet <span class="style_star">*</span> :</td>
						<td><input type="text" id="sujet" name="sujet" size="45" maxlength="20" value="<?php echo $formSujet; ?>"/><span class="error-message"></span></td>
					</tr>
				
					<tr valign="top">
						<td>Message <span class="style_star">*</span> :</td>
						<td><textarea name="message" id="message" rows="10" cols="34" ><?php echo $formMessage; ?></textarea><span class="error-message"></span></td>
					</tr>
				
					<tr>
						<td></td>
						<td>
							<input name='annuler' type='reset' value='Annuler'>
							<input type="submit" id="submitContact" name="submitContact" value="Envoyer" class="submit" />
						</td>
					</tr>
				</table>
			</div>
		</form>
	</div><!-- #content -->
</div><!-- #content-container -->
<?php get_footer() ?>